SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[UserInfoLogin]
	@Login VARBINARY(MAX),
	@Password VARBINARY(MAX)
AS
BEGIN
	SELECT Id 
	FROM UserInfo
	WHERE Login = @Login AND Password = @Password AND Active = 1 AND Deleted = 0
END
GO
